From: Gautier Pelloux-Prayer Date: Fri, 6 Jan 2017 12:08:29 +0000 (+0100) Subject: extension: log message if extension could not be installed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~994^2^2~150 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=35a9c3ec867afa6359ebc27a00588ceddbda7e2a;p=gnome-shell.git extension: log message if extension could not be installed https://bugzilla.gnome.org/show_bug.cgi?id=776940 --- diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js index 03441e6b0..fd2ecfe30 100644 --- a/js/ui/extensionDownloader.js +++ b/js/ui/extensionDownloader.js @@ -233,7 +233,9 @@ var InstallExtensionDialog = new Lang.Class({ let dir = Gio.File.new_for_path(GLib.build_filenamev([global.userdatadir, 'extensions', uuid])); let invocation = this._invocation; function errback(code, message) { - invocation.return_dbus_error('org.gnome.Shell.' + code, message ? message.toString() : ''); + let msg = message ? message.toString() : ''; + log('Error while installing %s: %s (%s)'.format(uuid, code, msg)); + invocation.return_dbus_error('org.gnome.Shell.' + code, msg); } function callback() {